Skip to content

build: isolate yarn cache when running verdaccio#4161

Merged
erickzhao merged 1 commit intonextfrom
isolate-yarn-cache-verdaccio
Mar 11, 2026
Merged

build: isolate yarn cache when running verdaccio#4161
erickzhao merged 1 commit intonextfrom
isolate-yarn-cache-verdaccio

Conversation

@erickzhao
Copy link
Member

@erickzhao erickzhao commented Mar 11, 2026

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • The changes are appropriately documented (if applicable).
  • The changes have sufficient test coverage (if applicable).
  • The testsuite passes successfully on my local machine (if applicable).

Summarize your changes:

Small PR to avoid polluting the global Yarn Berry cache with Verdaccio.

Without this, running npx create-electron-app@alpha with Yarn will generate invalid checksums if you're installing a version number that was previously published to the Verdaccio registry.

This leads to scary errors like:

➤ YN0018: │ @electron-forge/core@npm:8.0.0-alpha.4: The remote archive doesn't match the expected checksum

This PR sets the Yarn cache folders to a subfolder of the Verdaccio STORAGE_PATH, which gets cleaned up at the end of every Verdaccio run.

@erickzhao erickzhao added the next label Mar 11, 2026
@erickzhao erickzhao marked this pull request as ready for review March 11, 2026 05:03
@erickzhao erickzhao requested a review from a team as a code owner March 11, 2026 05:03
@erickzhao erickzhao merged commit 6275299 into next Mar 11, 2026
15 checks passed
@erickzhao erickzhao deleted the isolate-yarn-cache-verdaccio branch March 11, 2026 19:08
github-merge-queue bot pushed a commit that referenced this pull request Mar 11, 2026
build: isolate yarn cache when running verdaccio (#4161)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants